home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / likene1a / myprog5.frm < prev    next >
Text File  |  1999-09-24  |  11KB  |  386 lines

  1. VERSION 5.00
  2. Begin VB.Form Form3 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Message manager"
  5.    ClientHeight    =   3000
  6.    ClientLeft      =   3900
  7.    ClientTop       =   2490
  8.    ClientWidth     =   5280
  9.    ControlBox      =   0   'False
  10.    BeginProperty Font 
  11.       Name            =   "Arial"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   700
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    LinkTopic       =   "Form3"
  20.    MaxButton       =   0   'False
  21.    MinButton       =   0   'False
  22.    ScaleHeight     =   3000
  23.    ScaleWidth      =   5280
  24.    ShowInTaskbar   =   0   'False
  25.    Begin VB.CommandButton Command20 
  26.       Caption         =   "Abort/ Retry/ Ignore"
  27.       Height          =   495
  28.       Left            =   3960
  29.       TabIndex        =   26
  30.       Top             =   2520
  31.       Width           =   1335
  32.    End
  33.    Begin VB.CommandButton Command25 
  34.       Appearance      =   0  'Flat
  35.       BackColor       =   &H00C0C0C0&
  36.       Caption         =   "Exit"
  37.       Height          =   375
  38.       Left            =   3960
  39.       TabIndex        =   2
  40.       Top             =   0
  41.       Width           =   1335
  42.    End
  43.    Begin VB.CommandButton Command17 
  44.       Caption         =   "Abort/ Retry/ Ignore"
  45.       Height          =   495
  46.       Left            =   2640
  47.       TabIndex        =   19
  48.       Top             =   2520
  49.       Width           =   1335
  50.    End
  51.    Begin VB.CommandButton Command18 
  52.       Caption         =   "Abort/ Retry/ Ignore"
  53.       Height          =   495
  54.       Left            =   1320
  55.       TabIndex        =   20
  56.       Top             =   2520
  57.       Width           =   1335
  58.    End
  59.    Begin VB.CommandButton Command19 
  60.       Caption         =   "Abort/ Retry/ Ignore"
  61.       Height          =   495
  62.       Left            =   0
  63.       TabIndex        =   21
  64.       Top             =   2520
  65.       Width           =   1335
  66.    End
  67.    Begin VB.CommandButton Command16 
  68.       Caption         =   "Yes/ no"
  69.       Height          =   375
  70.       Left            =   3960
  71.       TabIndex        =   18
  72.       Top             =   2160
  73.       Width           =   1335
  74.    End
  75.    Begin VB.CommandButton Command15 
  76.       Caption         =   "Yes/ no"
  77.       Height          =   375
  78.       Left            =   2640
  79.       TabIndex        =   17
  80.       Top             =   2160
  81.       Width           =   1335
  82.    End
  83.    Begin VB.CommandButton Command14 
  84.       Caption         =   "Yes/ no"
  85.       Height          =   375
  86.       Left            =   1320
  87.       TabIndex        =   16
  88.       Top             =   2160
  89.       Width           =   1335
  90.    End
  91.    Begin VB.CommandButton Command13 
  92.       Caption         =   "Yes/ no"
  93.       Height          =   375
  94.       Left            =   0
  95.       TabIndex        =   15
  96.       Top             =   2160
  97.       Width           =   1335
  98.    End
  99.    Begin VB.CommandButton Command12 
  100.       Caption         =   "Retry/ cancel"
  101.       Height          =   375
  102.       Left            =   3960
  103.       TabIndex        =   14
  104.       Top             =   1800
  105.       Width           =   1335
  106.    End
  107.    Begin VB.CommandButton Command11 
  108.       Caption         =   "Retry/ cancel"
  109.       Height          =   375
  110.       Left            =   2640
  111.       TabIndex        =   13
  112.       Top             =   1800
  113.       Width           =   1335
  114.    End
  115.    Begin VB.CommandButton Command10 
  116.       Caption         =   "Retry/ cancel"
  117.       Height          =   375
  118.       Left            =   1320
  119.       TabIndex        =   12
  120.       Top             =   1800
  121.       Width           =   1335
  122.    End
  123.    Begin VB.CommandButton Command9 
  124.       Caption         =   "Retry/ cancel"
  125.       Height          =   375
  126.       Left            =   0
  127.       TabIndex        =   11
  128.       Top             =   1800
  129.       Width           =   1335
  130.    End
  131.    Begin VB.CommandButton Command8 
  132.       Caption         =   "Ok/ cancel"
  133.       Height          =   375
  134.       Left            =   3960
  135.       TabIndex        =   10
  136.       Top             =   1440
  137.       Width           =   1335
  138.    End
  139.    Begin VB.CommandButton Command7 
  140.       Caption         =   "Ok"
  141.       Height          =   375
  142.       Left            =   3960
  143.       TabIndex        =   9
  144.       Top             =   1080
  145.       Width           =   1335
  146.    End
  147.    Begin VB.CommandButton Command6 
  148.       Caption         =   "Ok/ cancel"
  149.       Height          =   375
  150.       Left            =   2640
  151.       TabIndex        =   8
  152.       Top             =   1440
  153.       Width           =   1335
  154.    End
  155.    Begin VB.CommandButton Command5 
  156.       Caption         =   "Ok"
  157.       Height          =   375
  158.       Left            =   2640
  159.       TabIndex        =   7
  160.       Top             =   1080
  161.       Width           =   1335
  162.    End
  163.    Begin VB.CommandButton Command4 
  164.       Caption         =   "Ok/ cancel"
  165.       Height          =   375
  166.       Left            =   1320
  167.       TabIndex        =   6
  168.       Top             =   1440
  169.       Width           =   1335
  170.    End
  171.    Begin VB.CommandButton Command3 
  172.       Caption         =   "Ok/ cancel"
  173.       Height          =   375
  174.       Left            =   0
  175.       TabIndex        =   5
  176.       Top             =   1440
  177.       Width           =   1335
  178.    End
  179.    Begin VB.CommandButton Command2 
  180.       Caption         =   "Ok"
  181.       Height          =   375
  182.       Left            =   1320
  183.       TabIndex        =   4
  184.       Top             =   1080
  185.       Width           =   1335
  186.    End
  187.    Begin VB.CommandButton Command1 
  188.       Caption         =   "Ok"
  189.       Height          =   375
  190.       Left            =   0
  191.       TabIndex        =   3
  192.       Top             =   1080
  193.       Width           =   1335
  194.    End
  195.    Begin VB.TextBox Text1 
  196.       Height          =   315
  197.       Left            =   0
  198.       TabIndex        =   1
  199.       Text            =   "C:/ not found..."
  200.       Top             =   360
  201.       Width           =   5295
  202.    End
  203.    Begin VB.Label Label5 
  204.       Caption         =   "Stop"
  205.       Height          =   255
  206.       Left            =   4320
  207.       TabIndex        =   25
  208.       Top             =   720
  209.       Width           =   615
  210.    End
  211.    Begin VB.Label Label4 
  212.       Caption         =   "Warning"
  213.       Height          =   255
  214.       Left            =   2880
  215.       TabIndex        =   24
  216.       Top             =   720
  217.       Width           =   735
  218.    End
  219.    Begin VB.Label Label3 
  220.       Caption         =   "Information"
  221.       Height          =   255
  222.       Left            =   1440
  223.       TabIndex        =   23
  224.       Top             =   720
  225.       Width           =   975
  226.    End
  227.    Begin VB.Label Label2 
  228.       Caption         =   "Qusetion"
  229.       Height          =   255
  230.       Left            =   240
  231.       TabIndex        =   22
  232.       Top             =   720
  233.       Width           =   975
  234.    End
  235.    Begin VB.Label Label1 
  236.       Caption         =   "Message:"
  237.       Height          =   255
  238.       Left            =   2160
  239.       TabIndex        =   0
  240.       Top             =   0
  241.       Width           =   855
  242.    End
  243. End
  244. Attribute VB_Name = "Form3"
  245. Attribute VB_GlobalNameSpace = False
  246. Attribute VB_Creatable = False
  247. Attribute VB_PredeclaredId = True
  248. Attribute VB_Exposed = False
  249. Dim mmflag As Boolean
  250. Dim sax As Integer
  251. Dim Say As Integer
  252.  
  253. Private Declare Function mciSendString Lib "winmm.dll" Alias _
  254. "mciSendStringA" (ByVal lpstrCommand As String, ByVal _
  255. lpstrReturnString As String, ByVal uReturnLength As Long, _
  256. ByVal hwndCallback As Long) As Long
  257.  
  258. Private Type RECT
  259.     Left As Long
  260.     Top As Long
  261.     Right As Long
  262.     Bottom As Long
  263. End Type
  264.  
  265. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
  266.    (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
  267.  Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, _
  268.    ByVal nCmdShow As Long) As Long
  269.  
  270.  Private Const SW_HIDE = 0
  271.  Private Const SW_SHOWNORMAL = 1
  272.  
  273. Private Sub Command1_Click()
  274. MsgBox Text1.Text, 32 +